/*
 * @Author: Xavier 1305433186@qq.com
 * @Date: 2023-11-06 14:16:17
 * @LastEditors: Xavier 1305433186@qq.com
 * @LastEditTime: 2024-08-12 10:55:24
 * @FilePath: \JS32T031_SDK\User\main.c
 * @Description:
 *
 * STAYTRUE (c) 2023 by ${Xavier}, All Rights Reserved.
 */
/**
 ******************************************************************************
 * @file    User/main.c
 * @author  JUSHENG Application Team
 * @version V1.0.4
 * @date    12-14-2021
 * @brief   Main program body
 ******************************************************************************
 * @attention
 *
 * <h2><center>&copy; COPYRIGHT 2021 JUSHENG</center></h2>
 *
 *
 *
 ******************************************************************************
 */

/* Includes ------------------------------------------------------------------*/
#include "include.h"
#include "main.h"
#include "tk_cfg.h"
#include "tasks.h"
#include "software_delay/software_delay.h"

/** @addtogroup Template_Project
 * @{
 */

/* Private typedef -----------------------------------------------------------*/
/* Private define ------------------------------------------------------------*/
/* Private macro -------------------------------------------------------------*/
/* Private variables ---------------------------------------------------------*/
/* Private function prototypes -----------------------------------------------*/
/* Private functions ---------------------------------------------------------*/

/**
 * @brief  Main program.
 * @param  None
 * @retval None
 */
int main(void)
{
  __enable_irq();
  ll_wdt_stop(WDT);
  SystemTickInit(); // 初始化系统tick

  system_init(); // 系统初始化

#if SCL_RUNTIME_EN
  selfcheck_runtime_init();
#endif

  while (1)
  {
    runtasks();
  }
}

/**
 * @}
 */
/*************************** (C) COPYRIGHT 2021 JUSHENG ***** END OF FILE *****/
